<?php
/**
 * Created by PhpStorm.
 * User: zhan
 * Date: 2018/9/21  14:59
 */
namespace app\admin\Controller;
class Admin extends Common
{


    //管理员表
    private $table_admin = "";

    /*
    *	构造函数
    */
    function __construct()
    {
        parent::__construct();
        $this->admin = db("admin");
    }

    /*
	*	管理员列表
	*/
    public function li(){
        $list = $this->admin->where("role_id != 0")->paginate(15);
        $this->assign('data',$list);
        $this->assign('page', $list->render());
        return $this->fetch();
    }
}